list_availables_nodes=(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 )
#list_availables_nodes=(10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40)
#list_availables_nodes=(9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 )
#list_availables_nodes=(33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50)
#list_availables_nodes=(25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40)
#list_availables_nodes=(17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32)
#list_availables_nodes=(32 33 34 35 36 37 38 39 40)

#list_ensemble=("A1" "A2" "A3" "A4")
list_ensemble=("0")
#list_ensemble=("A1")
Nensemble=${#list_ensemble[*]}
Nensemblem1=$(echo "$Nensemble - 1 " | bc -l )

#pm="p"
#pm="m"
pm="a"

#list_prop=(0 2 4 6 8 10 12 14)
list_prop=(16)
Nprop=${#list_prop[*]}
Npropm1=$(echo "$Nprop - 1 " | bc -l )

for e in `seq 0 $Nensemblem1 `
do

for p in `seq 0 $Npropm1 `
do

i=$(echo "$e*8+$p" | bc -l)
node=$(echo "${list_availables_nodes[$i]} " | bc -l )
nodeprint=`printf %02d $node `


ssh node$nodeprint "sh /home/nucave/workdir/lattice/RENORMALIZATION/reno/NF4/Z2F/SCRIPTS/launch_Run_Nf4_Z2f.sh 190 ${list_ensemble[$e]} $pm   ${list_prop[$p]}"


done

done
